package com.atguigu.springcloud;

import java.time.ZonedDateTime;

public class ZonedDateTimeDemo {
    public static void main(String[] args) {
        ZonedDateTime time = ZonedDateTime.now();
        System.out.println(time);

        // 2021-08-20T23:30:23.274+08:00[Asia/Shanghai]
    }
}
